﻿/**
 * ...
 * @author alijaya
 */

package homponex.utils;

class StringUtils 
{

	
	public static function newline(?n:Int = 0) : String
	{
		var s:String = "";
		for (i in 0...n)
		{
			s += "\n";
		}
		return s;
	}
	
	public static function tab(?t:Int = 0) : String
	{
		var s:String = "";
		for (i in 0...t)
		{
			s += "\t";
		}
		return s;
	}
	
	public static function nt(?n:Int = 0, ?t:Int = 0) : String
	{
		var s:String = "";
		for (j in 0...n)
		{
			s += "\n";
			for (i in 0...t)
			{
				s += "\t";
			}
		}
		return s;
	}
	
}